import assessCheckApi from './api'
import { axios } from '@/utils/request'

//删除
export function yssbDelete(params){
    return axios({
      url: assessCheckApi.yssbDelete,
      method:'delete' ,
      params:params,
      url_2:'outside'
    })
}

// 新建申报计划
export function yssbAdd(data){
    return axios({
        url: assessCheckApi.yssbAdd,
        data:{...data},
        method: "post",
        url_2:'outside',
    });
}

// 内控-预算申报-编辑
export function yssbEdit(params){
    return axios({
        url: assessCheckApi.yssbEdit,
        method:'put' ,
        data:{...params},
        url_2:'outside'
    })
}

// 是否财务
export function yssbSfcw(params){
    return axios({
        url: assessCheckApi.yssbSfcw,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 查看科室预算申报
export function yssbCheckKsyssb(params){
    return axios({
        url: assessCheckApi.yssbCheckKsyssb,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}



// 科室预算申报

// 新增部门预算申报
export function bmyssbAddbmyssb(params){
    return axios({
        url: assessCheckApi.bmyssbAddbmyssb,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 查询当前流程任务详情-通过当前流程任务id
export function yssbQueryJobByJobId(params){
    return axios({
        url: assessCheckApi.yssbQueryJobByJobId,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}


// // 提交流程
// export const submitFlow = function(data) {
//     return axios({
//         url: assessCheckApi.submitFlow,
//         data: data,
//         method: "post",
//         url_1:'outside',
//     });
// }

// // 退回流程
// export const returnUpperFlowJob = function(data) {
//     return axios({
//         url: assessCheckApi.returnUpperFlowJob,
//         data: data,
//         method: "post",
//         url_1:'outside',
//     });
// }
